package com.webwork.mood.record.dao;

import java.util.Calendar;
import java.util.List;

import com.webwork.mood.common.dao.DBInterface;
import com.webwork.mood.record.dataobject.MoodAverage;
import com.webwork.mood.record.dataobject.MoodRecord;
import com.webwork.mood.record.dataobject.MoodScore;

public interface RecordDao extends DBInterface {
	
	public void insert(final MoodRecord o);
	
	public void update(final MoodRecord o);
	
	public void delete(final String recordId);
	
	public List<MoodRecord> query(final MoodRecord o, final int page, final int size);
	
	public int count(final MoodRecord o);

	public MoodScore getMoodScoreTable(Calendar before, Calendar after);

	public List<MoodAverage> getMoodScore(Calendar before, Calendar after, int isManager);
	
}
